package com.drug.mingkang.permission.controller;

import com.drug.mingkang.permission.model.PerRoleModule;
import com.drug.mingkang.permission.service.PerRoleModuleService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 角色模块表(PerRoleModule)表控制层
 *
 * @author wenchangjian
 * @since 2020-08-11 12:00:14
 */
@RestController
@RequestMapping("perRoleModule")
public class PerRoleModuleController {
    /**
     * 服务对象
     */
    @Resource
    private PerRoleModuleService perRoleModuleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PerRoleModule selectOne(Integer id) {
        return this.perRoleModuleService.queryById(id);
    }

}